package com.example.mygrade.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.example.mygrade.domain.Student;
import lombok.Data;

import java.io.Serializable;

@Data
public class Import implements Serializable {

    @Excel(name = "学号",width = 10.0)
    private String sno;

    @Excel(name = "姓名",width = 10.0)
    private String sname;

    @Excel(name = "性别",width = 5.0)
    private String sex;

    @Excel(name = "年龄",width = 5.0)
    private Integer sage;

    @Excel(name = "密码",width = 10.0)
    private String password;

    @Excel(name = "班级号",width = 10.0)
    private Integer classid;

    @Excel(name = "年级号",width = 10.0)
    private Integer gradeid;

    @Excel(name = "专业编号",width = 10.0)
    private String mid;

    public Import(Student student){
        this.sno = student.getSno();
        this.sname = student.getSname();
        this.sex = student.getSex();
        this.sage = student.getSage();
        this.password = student.getPassword();
        this.classid = student.getClassid();
        this.gradeid = student.getGradeid();
        this.mid = student.getMid();
    }
}
